package TUILayer;

import CTRLayer.ProductCtr;
import ModelLayer.Product;


/**
 * Write a description of class ProductTUI here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class ProductTUI
{
	private ProductCtr productCtr;
    /**
     * Constructor for objects of class ProductTUI
     */
    public ProductTUI()
    {
    	productCtr = new ProductCtr();
    }
    
    public void newProduct(String productName, String productDesc, String EAN, int productGroup, int amountInStock, double price, double discount)
    {
    	productCtr.addProduct(productName, productDesc, EAN, productGroup, amountInStock, price, discount);
    }
    
    public Product findProductByEAN(String searchEAN)
    {
    	Product product = productCtr.findProductByEAN(searchEAN);
    	return product;
    }
    
}
